package org.anjan.dp.adapter;

public class CycleAdapter implements Vehicle {
    private Cycle cycle;

    public CycleAdapter(Cycle cycle) {
        this.cycle = cycle;
    }

    @Override
    public void moveForward() {
        cycle.pedalBackward();
    }

    @Override
    public void moveBackward() {
        cycle.pedalForward();
    }

    @Override
    public void moveLeft() {
        cycle.turnHandle("LEFT");
    }

    @Override
    public void moveRight() {
        cycle.turnHandle("RIGHT");
    }
}
